﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace bstest
{
    public partial class FormAnsShowWithoutShape : Form
    {
        public FormAnsShowWithoutShape()
        {
            InitializeComponent();
            int number,i;
            double[] frequency = new double[100];
            dataIO.ReadAnsMat(out number,out frequency);
			//读入数据
            for (i=1;i<number;i++)
            {
                Label LabelName = new Label();Label LabelValue = new Label();
                LabelName.Text = i.ToString() + "阶固有频率：";
                LabelValue.Text = frequency[i].ToString();
                LabelName.Location = new Point(40 , 20*i);
                LabelValue.Location = new Point(180, 20 * i);
                LabelName.Size = new System.Drawing.Size(120, 20);
                LabelValue.Size = new System.Drawing.Size(120, 20);
                this.Controls.Add(LabelName); this.Controls.Add(LabelValue);
                LabelName.Show();LabelValue.Show();
            }//按阶输出数据
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
